<!--
 * @Description: 
 * @Author: dh
 * @Date: 2021-09-27 14:48:56
 * @LastEditors: dh
 * @LastEditTime: 2021-09-27 14:53:57
-->
<!-- A.html -->
<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>A</title>
	</head>

	<body>
		<h1>A 页面</h1>
		<iframe src="./B.html" frameborder="0"></iframe>
		<script>
			window.addEventListener('storage', e => {
				console.log(e);
			});
		</script>
	</body>
</html>
